package com.ego.pojo;

/**
 * @author 袁梦达 2019012364
 */
public class OrderItem {
    private Integer orderItemId;
    private Integer orderId; //属于哪个订单
    private Integer productId;
    private Integer quantity;
    private double sumPrice;

    public OrderItem() {
    }

    public OrderItem(Integer orderItemId, Integer orderId, Integer productId, Integer quantity, double sumPrice) {
        this.orderItemId = orderItemId;
        this.orderId = orderId;
        this.productId = productId;
        this.quantity = quantity;
        this.sumPrice = sumPrice;
    }

    public Integer getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(Integer orderItemId) {
        this.orderItemId = orderItemId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public double getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(double sumPrice) {
        this.sumPrice = sumPrice;
    }
}
